﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tunnel.Tools.FcmsTools;

namespace Tunnel.Entity
{
    public class DisplayElement
    {
        public string Colour { get; set; } = "";

        public string Delay { get; set; } = "0";

        public string Font { get; set; } = "宋体";

        public string FontSize { get; set; } = "";

        public string image { get; set; } = "";

        public string imageX { get; set; } = "";

        public string imageY { get; set; } = "";

        public string Msg { get; set; } = "";

        public string MsgX { get; set; } = "";

        public string MsgY { get; set; } = "";
        public string ShowType { get; set; } = "立即出现";

        public string Speed { get; set; } = "0";
        

        public int ScreenWidth { get; set; }
        public int ScreenHeight { get; set; }

        public DisplayElement()
        {
            this.image = "";
            this.imageX = "";
            this.imageY = "";
            this.Msg = "请输入显示内容";
            this.MsgX = "000";
            this.MsgY = "000";
            this.Speed = "0";
            this.Delay = "0";
            this.Font = "宋体";
            this.FontSize = "1616";
            this.Colour = "绿色";
            this.ShowType = "立即出现";
            this.ScreenWidth = 128;
            this.ScreenHeight = 64;
        }

        public override string ToString()
        {
            return Msg.Replace(@"\n"," ");
        }

        
    }
}
